package edu.neu.swc.commerce.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h1>消息传递对象: SpringCloud Stream + Kafka / RocketMQ</h1>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QinyiMessage {

    private Integer id;
    private String projectName;
    private String org;
    private String author;
    private String version;

    /**
     * <h2>返回一个默认消息方便使用</h2>
     */
    public static QinyiMessage defaultMessage(){
        return new QinyiMessage(
                1,
                "e-commerce-stream-client",
                "edu.neu.swc",
                "WangY",
                "1.0"
        );
    }

}
